// Some general UI pack related JS

$(function () {
    // Custom selects
    //$("select").dropkick();
});

$(document).ready(function() {

    // Init jQuery UI slider
    $("#slider").slider({
        min: 1,
        max: 5,
        value: 2,
        orientation: "horizontal",
        range: "min",
    });

    // JS input/textarea placeholder
    $("input, textarea").placeholder();

    // Make pagination demo work

    $(".btn-group a").click(function() {
        $(this).siblings().removeClass("active");
        $(this).addClass("active");
    });

    // Disable link click not scroll top
    $("a[href='#']").click(function() {
        return false
    });

    $('#toggle-btn').toggle(
        function(){
            $('#control-panel').animate({left:'+=30%'},500);
        },
        function(){
            $('#control-panel').animate({left:'-=30%'},500);
        }
    );

    $('.ui-slider').css('width', '75%');

    //setInterval(get_position,60);
    //get_position()

});


